export const sankeyData = {
    nodes: [
        { id: 0, name: '首页' },
        { id: 1, name: '产品列表' },
        { id: 2, name: '产品详情' },
        { id: 3, name: '加入购物车' },
        { id: 4, name: '结算页面' },
        { id: 5, name: '支付页面' },
        { id: 6, name: '完成订单' },
        { id: 7, name: '放弃购买' },
    ],
    //桑基图的数据source：从节点几出发 target：到达节点几 value：从节点几出发 到达节点几的权重
    links: [
        { source: 0, target: 1, value: 10000 },
        { source: 1, target: 2, value: 7000 },
        { source: 1, target: 7, value: 3000 },
        { source: 2, target: 3, value: 3500 },
        { source: 2, target: 7, value: 3500 },
        { source: 3, target: 4, value: 3000 },
        { source: 3, target: 7, value: 500 },
        { source: 4, target: 5, value: 2500 },
        { source: 4, target: 7, value: 500 },
        { source: 5, target: 6, value: 1500 },
        { source: 5, target: 7, value: 1000 },
    ]
};